package com.ruoyi.zongdianpifa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zongdianpifa.mapper.ZongdianPifaMapper;
import com.ruoyi.zongdianpifa.domain.ZongdianPifa;
import com.ruoyi.zongdianpifa.service.IZongdianPifaService;

/**
 * 总店批发Service业务层处理
 *
 * @author ruoyi
 * @date 2023-05-24
 */
@Service
public class ZongdianPifaServiceImpl implements IZongdianPifaService
{
    @Autowired
    private ZongdianPifaMapper zongdianPifaMapper;

    /**
     * 查询总店批发
     *
     * @param id 总店批发主键
     * @return 总店批发
     */
    @Override
    public ZongdianPifa selectZongdianPifaById(Long id)
    {
        return zongdianPifaMapper.selectZongdianPifaById(id);
    }

    /**
     * 查询总店批发列表
     *
     * @param zongdianPifa 总店批发
     * @return 总店批发
     */
    @Override
    public List<ZongdianPifa> selectZongdianPifaList(ZongdianPifa zongdianPifa)
    {
        return zongdianPifaMapper.selectZongdianPifaList(zongdianPifa);
    }

    /**
     * 新增总店批发
     *
     * @param zongdianPifa 总店批发
     * @return 结果
     */
    @Override
    public int insertZongdianPifa(ZongdianPifa zongdianPifa)
    {
        return zongdianPifaMapper.insertZongdianPifa(zongdianPifa);
    }

    /**
     * 修改总店批发
     *
     * @param zongdianPifa 总店批发
     * @return 结果
     */
    @Override
    public int updateZongdianPifa(ZongdianPifa zongdianPifa)
    {
        return zongdianPifaMapper.updateZongdianPifa(zongdianPifa);
    }

    /**
     * 批量删除总店批发
     *
     * @param ids 需要删除的总店批发主键
     * @return 结果
     */
    @Override
    public int deleteZongdianPifaByIds(Long[] ids)
    {
        return zongdianPifaMapper.deleteZongdianPifaByIds(ids);
    }

    /**
     * 删除总店批发信息
     *
     * @param id 总店批发主键
     * @return 结果
     */
    @Override
    public int deleteZongdianPifaById(Long id)
    {
        return zongdianPifaMapper.deleteZongdianPifaById(id);
    }
}
